<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .ad {
            width: 900px;
            height: 500px;
        }
    </style>
</head>

<body>
    <img src="https://tse1-mm.cn.bing.net/th/id/R-C.2b1bef1b1c9f2698d5111b7c75b41b40?rik=Ob0e1SKL6jRWpw&riu=http%3a%2f%2fimg.lieyou888.com%2f000%2f2020%2f10%2f10%2ffa0a777b-0aa2-4c3b-acd5-0fa315f980d2.jpg&ehk=0YKb4%2bKWNT0uAab6bVaEiUF%2fn%2fYI9f7jrEHYiYmM3NY%3d&risl=&pid=ImgRaw&r=0"
        alt="" class="ad">

    <script>
        var ad = document.querySelector('.ad');
        setTimeout(function(){
            ad.style.display='none';
        },5000)
    </script>
</body>

</html>